package com.zzdx.deployment.web.controller.resource;

import com.zzdx.deployment.framework.web.base.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 脚本下载
 * 
 * @author mason
 */
@Controller
@RequestMapping("/resource/script")
public class ScriptDownloadController extends BaseController
{
    private String prefix = "resource/script";

    @RequiresPermissions("resource:script:view")
    @GetMapping()
    public String server(ModelMap mmap) throws Exception
    {
        return prefix + "/scriptdownload";
    }
}
